package inherit.homework3;

public class TestPlay {
    public static void main(String[] args) {
        Instrument instrument = new Piano("钢琴");
        instrument.play();
        instrument = new Violin("小提琴");
        instrument.play();
    }
}